Pets.fromJson constructor

Pets.fromJson(
  1. Map json_
)

Implementation

Pets.fromJson(core.Map json_)
    : this(
        catsAllowed: json_.containsKey('catsAllowed')
            ? json_['catsAllowed'] as core.bool
            : null,
        catsAllowedException: json_.containsKey('catsAllowedException')
            ? json_['catsAllowedException'] as core.String
            : null,
        dogsAllowed: json_.containsKey('dogsAllowed')
            ? json_['dogsAllowed'] as core.bool
            : null,
        dogsAllowedException: json_.containsKey('dogsAllowedException')
            ? json_['dogsAllowedException'] as core.String
            : null,
        petsAllowed: json_.containsKey('petsAllowed')
            ? json_['petsAllowed'] as core.bool
            : null,
        petsAllowedException: json_.containsKey('petsAllowedException')
            ? json_['petsAllowedException'] as core.String
            : null,
        petsAllowedFree: json_.containsKey('petsAllowedFree')
            ? json_['petsAllowedFree'] as core.bool
            : null,
        petsAllowedFreeException:
            json_.containsKey('petsAllowedFreeException')
                ? json_['petsAllowedFreeException'] as core.String
                : null,
      );