DisplayData.fromJson constructor

DisplayData.fromJson(
  1. Map _json
)

Implementation

DisplayData.fromJson(core.Map _json)
    : this(
        boolValue: _json.containsKey('boolValue')
            ? _json['boolValue'] as core.bool
            : null,
        durationValue: _json.containsKey('durationValue')
            ? _json['durationValue'] as core.String
            : null,
        floatValue: _json.containsKey('floatValue')
            ? (_json['floatValue'] as core.num).toDouble()
            : null,
        int64Value: _json.containsKey('int64Value')
            ? _json['int64Value'] as core.String
            : null,
        javaClassValue: _json.containsKey('javaClassValue')
            ? _json['javaClassValue'] as core.String
            : null,
        key: _json.containsKey('key') ? _json['key'] as core.String : null,
        label:
            _json.containsKey('label') ? _json['label'] as core.String : null,
        namespace: _json.containsKey('namespace')
            ? _json['namespace'] as core.String
            : null,
        shortStrValue: _json.containsKey('shortStrValue')
            ? _json['shortStrValue'] as core.String
            : null,
        strValue: _json.containsKey('strValue')
            ? _json['strValue'] as core.String
            : null,
        timestampValue: _json.containsKey('timestampValue')
            ? _json['timestampValue'] as core.String
            : null,
        url: _json.containsKey('url') ? _json['url'] as core.String : null,
      );