SmartMeter.fromJson constructor

SmartMeter.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SmartMeter.fromJson(Map<String, dynamic> json) {
  return SmartMeter(
      echonetLiteProperties: List<EchonetLiteProperty>.from(
          (json['echonetlite_properties'] as Iterable)
              .map((e) => EchonetLiteProperty.fromJson(e))));
}