TableWithColumnsResource.fromJson constructor

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

Implementation

factory TableWithColumnsResource.fromJson(Map<String, dynamic> json) {
  return TableWithColumnsResource(
    databaseName: json['DatabaseName'] as String,
    name: json['Name'] as String,
    catalogId: json['CatalogId'] as String?,
    columnNames: (json['ColumnNames'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    columnWildcard: json['ColumnWildcard'] != null
        ? ColumnWildcard.fromJson(
            json['ColumnWildcard'] as Map<String, dynamic>)
        : null,
  );
}