1
0
mirror of https://github.com/krawieck/lemmur/ synced 2024-12-18 11:28:45 +01:00
lemmur-app-android/lib/client/models/captcha.dart

23 lines
495 B
Dart
Raw Normal View History

2020-08-10 14:36:30 +02:00
import 'package:json_annotation/json_annotation.dart';
2020-08-10 14:22:28 +02:00
part 'captcha.g.dart';
/// based on https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#get-captcha
@JsonSerializable(fieldRename: FieldRename.snake, createToJson: false)
class Captcha {
final String png;
/// can be null
final String wav;
final String uuid;
2020-08-10 14:22:28 +02:00
const Captcha({
this.png,
this.wav,
this.uuid
});
factory Captcha.fromJson(Map<String, dynamic> json) =>
_$CaptchaFromJson(json);
}