FieldConfiguration.fromJson constructor

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

Implementation

factory FieldConfiguration.fromJson(Map<String, Object?> json) {
  return FieldConfiguration(
    description: json[r'description'] as String? ?? '',
    id: (json[r'id'] as num?)?.toInt() ?? 0,
    isDefault: json[r'isDefault'] as bool? ?? false,
    name: json[r'name'] as String? ?? '',
  );
}