$CallEntityFromJson function

CallEntity $CallEntityFromJson(
  1. Map<String, dynamic> json
)

Implementation

CallEntity $CallEntityFromJson(Map<String, dynamic> json) {
	final CallEntity callEntity = CallEntity();
	final String? callId = jsonConvert.convert<String>(json['callId']);
	if (callId != null) {
		callEntity.callId = callId;
	}
	final String? userName = jsonConvert.convert<String>(json['userName']);
	if (userName != null) {
		callEntity.userName = userName;
	}
	final String? userImage = jsonConvert.convert<String>(json['userImage']);
	if (userImage != null) {
		callEntity.userImage = userImage;
	}
	final bool? callMatch = jsonConvert.convert<bool>(json['callMatch']);
	if (callMatch != null) {
		callEntity.callMatch = callMatch;
	}
	final int? callType = jsonConvert.convert<int>(json['callType']);
	if (callType != null) {
		callEntity.callType = callType;
	}
	final int? toyCost = jsonConvert.convert<int>(json['toyCost']);
	if (toyCost != null) {
		callEntity.toyCost = toyCost;
	}
	final String? callCost = jsonConvert.convert<String>(json['callCost']);
	if (callCost != null) {
		callEntity.callCost = callCost;
	}
	final String? callCostUserId = jsonConvert.convert<String>(json['callCostUserId']);
	if (callCostUserId != null) {
		callEntity.callCostUserId = callCostUserId;
	}
	final String? callPackage = jsonConvert.convert<String>(json['callPackage']);
	if (callPackage != null) {
		callEntity.callPackage = callPackage;
	}
	final String? matchTime = jsonConvert.convert<String>(json['matchTime']);
	if (matchTime != null) {
		callEntity.matchTime = matchTime;
	}
	final List<MatchCostUser>? matchCostUserId = jsonConvert.convertListNotNull<MatchCostUser>(json['matchCostUserId']);
	if (matchCostUserId != null) {
		callEntity.matchCostUserId = matchCostUserId;
	}
	return callEntity;
}