LogicalTable.fromJson constructor

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

Implementation

factory LogicalTable.fromJson(Map<String, dynamic> json) {
  return LogicalTable(
    alias: json['Alias'] as String,
    source:
        LogicalTableSource.fromJson(json['Source'] as Map<String, dynamic>),
    dataTransforms: (json['DataTransforms'] as List?)
        ?.whereNotNull()
        .map((e) => TransformOperation.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}