ErrorMessage.fromJson constructor

ErrorMessage.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ErrorMessage.fromJson(Map<String, Object?> json) {
  return ErrorMessage(
    message: json[r'message'] as String? ?? '',
  );
}