ImportContext.fromJson constructor

ImportContext.fromJson(
  1. Map _json
)

Implementation

ImportContext.fromJson(core.Map _json)
    : this(
        bakImportOptions: _json.containsKey('bakImportOptions')
            ? ImportContextBakImportOptions.fromJson(_json['bakImportOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        csvImportOptions: _json.containsKey('csvImportOptions')
            ? ImportContextCsvImportOptions.fromJson(_json['csvImportOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        database: _json.containsKey('database')
            ? _json['database'] as core.String
            : null,
        fileType: _json.containsKey('fileType')
            ? _json['fileType'] as core.String
            : null,
        importUser: _json.containsKey('importUser')
            ? _json['importUser'] as core.String
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        uri: _json.containsKey('uri') ? _json['uri'] as core.String : null,
      );