toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['status'] = this.status;
  data['message'] = this.message;
  if (this.data != null) {
    data['data'] = this.data?.toJson();
  }
  if (this.meta != null) {
    data['meta'] = this.meta?.toJson();
  }
  return data;
}