ChangeLog.fromJson constructor

ChangeLog.fromJson(
  1. Map json_
)

Implementation

ChangeLog.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        action: json_.containsKey('action')
            ? json_['action'] as core.String
            : null,
        changeTime: json_.containsKey('changeTime')
            ? core.DateTime.parse(json_['changeTime'] as core.String)
            : null,
        fieldName: json_.containsKey('fieldName')
            ? json_['fieldName'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        newValue: json_.containsKey('newValue')
            ? json_['newValue'] as core.String
            : null,
        objectId: json_.containsKey('objectId')
            ? json_['objectId'] as core.String
            : null,
        objectType: json_.containsKey('objectType')
            ? json_['objectType'] as core.String
            : null,
        oldValue: json_.containsKey('oldValue')
            ? json_['oldValue'] as core.String
            : null,
        subaccountId: json_.containsKey('subaccountId')
            ? json_['subaccountId'] as core.String
            : null,
        transactionId: json_.containsKey('transactionId')
            ? json_['transactionId'] as core.String
            : null,
        userProfileId: json_.containsKey('userProfileId')
            ? json_['userProfileId'] as core.String
            : null,
        userProfileName: json_.containsKey('userProfileName')
            ? json_['userProfileName'] as core.String
            : null,
      );