ExtensionResponse.fromJson constructor

ExtensionResponse.fromJson(
  1. List jsonList
)

Implementation

factory ExtensionResponse.fromJson(List<dynamic> jsonList) {
  final json = listToMap(jsonList, type: type);
  return ExtensionResponse(
    id: json['id'] as int,
    success: json['success'] as bool,
    result: json['result'] as String,
    error: json['error'] as String?,
  );
}