$ChangeLog.fromJson constructor Null safety

$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,
      );