Proposal.fromJson constructor

Proposal.fromJson(
  1. Map json_
)

Implementation

Proposal.fromJson(core.Map json_)
    : this(
        billedBuyer: json_.containsKey('billedBuyer')
            ? json_['billedBuyer'] as core.String
            : null,
        buyer:
            json_.containsKey('buyer') ? json_['buyer'] as core.String : null,
        buyerContacts: json_.containsKey('buyerContacts')
            ? (json_['buyerContacts'] as core.List)
                .map((value) => Contact.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        buyerPrivateData: json_.containsKey('buyerPrivateData')
            ? PrivateData.fromJson(json_['buyerPrivateData']
                as core.Map<core.String, core.dynamic>)
            : null,
        client: json_.containsKey('client')
            ? json_['client'] as core.String
            : null,
        dealType: json_.containsKey('dealType')
            ? json_['dealType'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        isRenegotiating: json_.containsKey('isRenegotiating')
            ? json_['isRenegotiating'] as core.bool
            : null,
        lastUpdaterOrCommentorRole:
            json_.containsKey('lastUpdaterOrCommentorRole')
                ? json_['lastUpdaterOrCommentorRole'] as core.String
                : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        notes: json_.containsKey('notes')
            ? (json_['notes'] as core.List)
                .map((value) => Note.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        originatorRole: json_.containsKey('originatorRole')
            ? json_['originatorRole'] as core.String
            : null,
        pausingConsented: json_.containsKey('pausingConsented')
            ? json_['pausingConsented'] as core.bool
            : null,
        proposalRevision: json_.containsKey('proposalRevision')
            ? json_['proposalRevision'] as core.String
            : null,
        publisherProfile: json_.containsKey('publisherProfile')
            ? json_['publisherProfile'] as core.String
            : null,
        sellerContacts: json_.containsKey('sellerContacts')
            ? (json_['sellerContacts'] as core.List)
                .map((value) => Contact.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        termsAndConditions: json_.containsKey('termsAndConditions')
            ? json_['termsAndConditions'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );