ExtensionRequest.fromJson constructor

ExtensionRequest.fromJson(
  1. List jsonList
)

Implementation

factory ExtensionRequest.fromJson(List<dynamic> jsonList) {
  final json = listToMap(jsonList, type: type);
  return ExtensionRequest(
    id: json['id'] as int,
    command: json['command'] as String,
    commandParams: json['commandParams'] as String?,
  );
}