toJson method

Map<String, dynamic> toJson()
override

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.plurkUsers != null) {
    // For the json object manually.
    Map<int, dynamic> map = Map<int, dynamic>();
    plurkUsers!.forEach((key, value) {
      map[key] = value.toJson();
    });
    data['plurk_users'] = map;
  }

  if (this.plurk != null) {
    data['plurk'] = this.plurk!.toJson();
  }

  if (this.user != null) {
    data['user'] = this.user!.toJson();
  }

  data['error_text'] = this.errorText;
  data['success_text'] = this.successText;
  return data;
}