response.dart 366 B

123456789101112131415
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'response.g.dart';
  3. @JsonSerializable()
  4. class Response2 {
  5. Response2();
  6. String msg;
  7. num code;
  8. @JsonKey(name: 'result') dynamic result;
  9. factory Response2.fromJson(Map<String,dynamic> json) => _$ResponseFromJson(json);
  10. Map<String, dynamic> toJson() => _$ResponseToJson(this);
  11. }