toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "id": id,
      "date_created": dateCreated!.toIso8601String(),
      "date_created_gmt": dateCreatedGmt!.toIso8601String(),
      "date_modified": dateModified!.toIso8601String(),
      "date_modified_gmt": dateModifiedGmt!.toIso8601String(),
      "email": email,
      "first_name": firstName,
      "last_name": lastName,
      "role": role,
      "username": username,
      "billing": billing!.toJson(),
      "shipping": shipping!.toJson(),
      "is_paying_customer": isPayingCustomer,
      "avatar_url": avatarUrl,
      "meta_data": List<dynamic>.from(metaData!.map((x) => x)),
      "_links": links!.toJson(),
    };