MatterFabricData.fromJson constructor

MatterFabricData.fromJson(
  1. Map<String, dynamic> dataMap
)

Creates a MatterFabricData object from the JSON response to a GET request.

Implementation

factory MatterFabricData.fromJson(Map<String, dynamic> dataMap) {
  return MatterFabricData(
    label: dataMap[ApiFields.label] ?? "",
    vendorId: dataMap[ApiFields.vendorId] ?? 0,
  );
}