UsageReportEntity.fromJson constructor Null safety

UsageReportEntity.fromJson(
  1. Map _json
)

Implementation

UsageReportEntity.fromJson(core.Map _json)
    : this(
        customerId: _json.containsKey('customerId')
            ? _json['customerId'] as core.String
            : null,
        entityId: _json.containsKey('entityId')
            ? _json['entityId'] as core.String
            : null,
        profileId: _json.containsKey('profileId')
            ? _json['profileId'] as core.String
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
        userEmail: _json.containsKey('userEmail')
            ? _json['userEmail'] as core.String
            : null,
      );