PortalBusinessProfile.fromJson constructor

PortalBusinessProfile.fromJson(
  1. Object? json
)

Implementation

factory PortalBusinessProfile.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PortalBusinessProfile(
    headline: map['headline'] == null ? null : (map['headline'] as String),
    privacyPolicyUrl: map['privacy_policy_url'] == null
        ? null
        : (map['privacy_policy_url'] as String),
    termsOfServiceUrl: map['terms_of_service_url'] == null
        ? null
        : (map['terms_of_service_url'] as String),
  );
}