ThingAttribute.fromJson constructor

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

Implementation

factory ThingAttribute.fromJson(Map<String, dynamic> json) {
  return ThingAttribute(
    attributes: (json['attributes'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    thingArn: json['thingArn'] as String?,
    thingName: json['thingName'] as String?,
    thingTypeName: json['thingTypeName'] as String?,
    version: json['version'] as int?,
  );
}