GetDeviceMethodsResponse.fromJson constructor

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

Implementation

factory GetDeviceMethodsResponse.fromJson(Map<String, dynamic> json) {
  return GetDeviceMethodsResponse(
    deviceMethods: (json['deviceMethods'] as List?)
        ?.whereNotNull()
        .map((e) => DeviceMethod.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}