NetworkProfile.fromJson constructor

NetworkProfile.fromJson(
  1. Object? j
)

Implementation

factory NetworkProfile.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return NetworkProfile(
    creationTimestamp: switch (json['creationTimestamp']) {
      null => null,
      Object $1 => decodeString($1),
    },
    description: switch (json['description']) {
      null => null,
      Object $1 => decodeString($1),
    },
    features: switch (json['features']) {
      null => null,
      Object $1 => NetworkProfileNetworkFeatures.fromJson($1),
    },
    id: switch (json['id']) {
      null => null,
      Object $1 => decodeUint64($1),
    },
    kind: switch (json['kind']) {
      null => null,
      Object $1 => decodeString($1),
    },
    location: switch (json['location']) {
      null => null,
      Object $1 => NetworkProfileLocation.fromJson($1),
    },
    name: switch (json['name']) {
      null => null,
      Object $1 => decodeString($1),
    },
    profileType: switch (json['profileType']) {
      null => null,
      Object $1 => NetworkProfileProfileType.fromJson($1),
    },
    selfLink: switch (json['selfLink']) {
      null => null,
      Object $1 => decodeString($1),
    },
    selfLinkWithId: switch (json['selfLinkWithId']) {
      null => null,
      Object $1 => decodeString($1),
    },
    zone: switch (json['zone']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}