Resource.fromJson constructor

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

Implementation

factory Resource.fromJson(Map<String, dynamic> json) {
  return Resource(
    catalog: json['Catalog'] != null
        ? CatalogResource.fromJson(json['Catalog'] as Map<String, dynamic>)
        : null,
    dataLocation: json['DataLocation'] != null
        ? DataLocationResource.fromJson(
            json['DataLocation'] as Map<String, dynamic>)
        : null,
    database: json['Database'] != null
        ? DatabaseResource.fromJson(json['Database'] as Map<String, dynamic>)
        : null,
    table: json['Table'] != null
        ? TableResource.fromJson(json['Table'] as Map<String, dynamic>)
        : null,
    tableWithColumns: json['TableWithColumns'] != null
        ? TableWithColumnsResource.fromJson(
            json['TableWithColumns'] as Map<String, dynamic>)
        : null,
  );
}