CustomSql.fromJson constructor

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

Implementation

factory CustomSql.fromJson(Map<String, dynamic> json) {
  return CustomSql(
    dataSourceArn: json['DataSourceArn'] as String,
    name: json['Name'] as String,
    sqlQuery: json['SqlQuery'] as String,
    columns: (json['Columns'] as List?)
        ?.whereNotNull()
        .map((e) => InputColumn.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}