Operation.fromJson constructor

Operation.fromJson(
  1. Map _json
)

Implementation

Operation.fromJson(core.Map _json)
    : this(
        backupContext: _json.containsKey('backupContext')
            ? BackupContext.fromJson(
                _json['backupContext'] as core.Map<core.String, core.dynamic>)
            : null,
        endTime: _json.containsKey('endTime')
            ? _json['endTime'] as core.String
            : null,
        error: _json.containsKey('error')
            ? OperationErrors.fromJson(
                _json['error'] as core.Map<core.String, core.dynamic>)
            : null,
        exportContext: _json.containsKey('exportContext')
            ? ExportContext.fromJson(
                _json['exportContext'] as core.Map<core.String, core.dynamic>)
            : null,
        importContext: _json.containsKey('importContext')
            ? ImportContext.fromJson(
                _json['importContext'] as core.Map<core.String, core.dynamic>)
            : null,
        insertTime: _json.containsKey('insertTime')
            ? _json['insertTime'] as core.String
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        operationType: _json.containsKey('operationType')
            ? _json['operationType'] as core.String
            : null,
        selfLink: _json.containsKey('selfLink')
            ? _json['selfLink'] as core.String
            : null,
        startTime: _json.containsKey('startTime')
            ? _json['startTime'] as core.String
            : null,
        status: _json.containsKey('status')
            ? _json['status'] as core.String
            : null,
        targetId: _json.containsKey('targetId')
            ? _json['targetId'] as core.String
            : null,
        targetLink: _json.containsKey('targetLink')
            ? _json['targetLink'] as core.String
            : null,
        targetProject: _json.containsKey('targetProject')
            ? _json['targetProject'] as core.String
            : null,
        user: _json.containsKey('user') ? _json['user'] as core.String : null,
      );