AccountsCustomBatchRequestEntry.fromJson constructor

AccountsCustomBatchRequestEntry.fromJson(
  1. Map json_
)

Implementation

AccountsCustomBatchRequestEntry.fromJson(core.Map json_)
    : this(
        account: json_.containsKey('account')
            ? Account.fromJson(
                json_['account'] as core.Map<core.String, core.dynamic>)
            : null,
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        batchId: json_.containsKey('batchId')
            ? json_['batchId'] as core.int
            : null,
        force:
            json_.containsKey('force') ? json_['force'] as core.bool : null,
        labelIds: json_.containsKey('labelIds')
            ? (json_['labelIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        linkRequest: json_.containsKey('linkRequest')
            ? AccountsCustomBatchRequestEntryLinkRequest.fromJson(
                json_['linkRequest'] as core.Map<core.String, core.dynamic>)
            : null,
        merchantId: json_.containsKey('merchantId')
            ? json_['merchantId'] as core.String
            : null,
        method: json_.containsKey('method')
            ? json_['method'] as core.String
            : null,
        overwrite: json_.containsKey('overwrite')
            ? json_['overwrite'] as core.bool
            : null,
        view: json_.containsKey('view') ? json_['view'] as core.String : null,
      );