ExportContext.fromJson constructor

ExportContext.fromJson(
  1. Map json_
)

Implementation

ExportContext.fromJson(core.Map json_)
    : this(
        bakExportOptions: json_.containsKey('bakExportOptions')
            ? ExportContextBakExportOptions.fromJson(json_['bakExportOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        csvExportOptions: json_.containsKey('csvExportOptions')
            ? ExportContextCsvExportOptions.fromJson(json_['csvExportOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        databases: json_.containsKey('databases')
            ? (json_['databases'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        fileType: json_.containsKey('fileType')
            ? json_['fileType'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        offload: json_.containsKey('offload')
            ? json_['offload'] as core.bool
            : null,
        sqlExportOptions: json_.containsKey('sqlExportOptions')
            ? ExportContextSqlExportOptions.fromJson(json_['sqlExportOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );