factory InvalidParameterException.fromJson(Map<String, dynamic> json) { return InvalidParameterException( message: json['message'] as String, ); }