create static method
SocialAccounts
create({
- String special_type = "socialAccounts",
- num? total_count,
- List<
SocialAccount> ? social_accounts, - num special_status_code = 0,
override
return original data json
Implementation
static SocialAccounts create({
String special_type = "socialAccounts",
num? total_count,
List<SocialAccount>? social_accounts,
num special_status_code = 0,
}) {
// SocialAccounts socialAccounts = SocialAccounts({
Map socialAccounts_data_create_json = {
"@type": special_type,
"total_count": total_count,
"social_accounts": (social_accounts != null)? social_accounts.toJson(): null,
"@status_code": special_status_code,
};
socialAccounts_data_create_json.removeWhere((key, value) => value == null);
SocialAccounts socialAccounts_data_create = SocialAccounts(socialAccounts_data_create_json);
return socialAccounts_data_create;
}