toJson is not required
factory XRouteAction.fromJson(Map<String, dynamic> json) => _$XRouteActionFromJson(json);