Device.fromJson constructor

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

Implementation

factory Device.fromJson(Map<String, dynamic> json) {
  return Device(
    certificateArn: json['CertificateArn'] as String,
    id: json['Id'] as String,
    thingArn: json['ThingArn'] as String,
    syncShadow: json['SyncShadow'] as bool?,
  );
}