toJson method Null safety

Map toJson()

Implementation

Map toJson() {
  return {'is_error': true, 'status_code': statusCode, 'message': message, 'errors': errors};
}