fromJson static method
Implementation
static CommandBody fromJson(Map<String, dynamic> json) {
return CommandBody(
classId: json['class_id'] ?? '',
cmd: json['cmd'] ?? '',
userId: json['user_id'] ?? '',
type: CommandStatusEnum.values.byName(json['type'] ?? ''),
);
}