GetDeviceResult.fromJson constructor

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

Implementation

factory GetDeviceResult.fromJson(Map<String, dynamic> json) {
  return GetDeviceResult(
    device: json['device'] != null
        ? Device.fromJson(json['device'] as Map<String, dynamic>)
        : null,
  );
}