EventParam.fromJson constructor

EventParam.fromJson(
  1. Map _json
)

Implementation

EventParam.fromJson(core.Map _json)
    : this(
        doubleValue: _json.containsKey('doubleValue')
            ? (_json['doubleValue'] as core.num).toDouble()
            : null,
        floatValue: _json.containsKey('floatValue')
            ? (_json['floatValue'] as core.num).toDouble()
            : null,
        intValue: _json.containsKey('intValue')
            ? _json['intValue'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        paramValue: _json.containsKey('paramValue')
            ? (_json['paramValue'] as core.List)
                .map((value) => EventParam.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        stringValue: _json.containsKey('stringValue')
            ? _json['stringValue'] as core.String
            : null,
      );