Map<String, dynamic> toMap() { return { "gid": gid, "upi": upi?.toMap(), "type": type, "customerGid": customerGid, }; }