IncludedFields.fromJson constructor

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

Implementation

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