UsageReportParameters.fromJson constructor

UsageReportParameters.fromJson(
  1. Map json_
)

Implementation

UsageReportParameters.fromJson(core.Map json_)
    : this(
        boolValue: json_.containsKey('boolValue')
            ? json_['boolValue'] as core.bool
            : null,
        datetimeValue: json_.containsKey('datetimeValue')
            ? core.DateTime.parse(json_['datetimeValue'] as core.String)
            : null,
        intValue: json_.containsKey('intValue')
            ? json_['intValue'] as core.String
            : null,
        msgValue: json_.containsKey('msgValue')
            ? (json_['msgValue'] as core.List)
                .map((value) => value as core.Map<core.String, core.dynamic>)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        stringValue: json_.containsKey('stringValue')
            ? json_['stringValue'] as core.String
            : null,
      );