ErrorResponse.fromJson constructor

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

Implementation

factory ErrorResponse.fromJson(Map<String, dynamic> json) => ErrorResponse(
      code: json['code'] as int,
      message: json['message'] as String,
      data: json['data'] as String?,
    );