Map<String, dynamic> toJson() { final Map<String, dynamic> data = <String, dynamic>{}; data["resultCode"] = resultCode; data["resultInfo"] = resultInfo; data["extension"] = extension?.toJson(); return data; }