SourceSchema.fromJson constructor

SourceSchema.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SourceSchema.fromJson(Map<String, dynamic> json) {
  return SourceSchema(
    recordColumns: (json['RecordColumns'] as List)
        .whereNotNull()
        .map((e) => RecordColumn.fromJson(e as Map<String, dynamic>))
        .toList(),
    recordFormat:
        RecordFormat.fromJson(json['RecordFormat'] as Map<String, dynamic>),
    recordEncoding: json['RecordEncoding'] as String?,
  );
}