fromJson static method

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

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'] ?? ''),
  );
}