CustomFieldContextDefaultValueMultipleOption.fromJson constructor

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

Implementation

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