PermissionsKeysBean.fromJson constructor

PermissionsKeysBean.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory PermissionsKeysBean.fromJson(Map<String, Object?> json) {
  return PermissionsKeysBean(
    permissions: (json[r'permissions'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
  );
}