Exemplar.fromJson constructor

Exemplar.fromJson(
  1. Map json_
)

Implementation

Exemplar.fromJson(core.Map json_)
    : this(
        attachments: json_.containsKey('attachments')
            ? (json_['attachments'] as core.List)
                .map((value) => value as core.Map<core.String, core.dynamic>)
                .toList()
            : null,
        timestamp: json_.containsKey('timestamp')
            ? json_['timestamp'] as core.String
            : null,
        value: json_.containsKey('value')
            ? (json_['value'] as core.num).toDouble()
            : null,
      );