ThingConnectivity.fromJson constructor

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

Implementation

factory ThingConnectivity.fromJson(Map<String, dynamic> json) {
  return ThingConnectivity(
    connected: json['connected'] as bool?,
    timestamp: json['timestamp'] as int?,
  );
}