@override Map<String, dynamic> toJson() => <String, Object?>{ 'type': type, 'success': success ?? false, };