DataTransfer.fromJson constructor

DataTransfer.fromJson(
  1. Map json_
)

Implementation

DataTransfer.fromJson(core.Map json_)
    : this(
        applicationDataTransfers:
            json_.containsKey('applicationDataTransfers')
                ? (json_['applicationDataTransfers'] as core.List)
                    .map((value) => ApplicationDataTransfer.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        newOwnerUserId: json_.containsKey('newOwnerUserId')
            ? json_['newOwnerUserId'] as core.String
            : null,
        oldOwnerUserId: json_.containsKey('oldOwnerUserId')
            ? json_['oldOwnerUserId'] as core.String
            : null,
        overallTransferStatusCode:
            json_.containsKey('overallTransferStatusCode')
                ? json_['overallTransferStatusCode'] as core.String
                : null,
        requestTime: json_.containsKey('requestTime')
            ? core.DateTime.parse(json_['requestTime'] as core.String)
            : null,
      );