CustomFieldContextDefaultValueLabels.fromJson constructor

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

Implementation

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