CalendarResource.fromJson constructor

CalendarResource.fromJson(
  1. Map json_
)

Implementation

CalendarResource.fromJson(core.Map json_)
    : this(
        buildingId: json_.containsKey('buildingId')
            ? json_['buildingId'] as core.String
            : null,
        capacity: json_.containsKey('capacity')
            ? json_['capacity'] as core.int
            : null,
        etags:
            json_.containsKey('etags') ? json_['etags'] as core.String : null,
        featureInstances: json_.containsKey('featureInstances')
            ? json_['featureInstances']
            : null,
        floorName: json_.containsKey('floorName')
            ? json_['floorName'] as core.String
            : null,
        floorSection: json_.containsKey('floorSection')
            ? json_['floorSection'] as core.String
            : null,
        generatedResourceName: json_.containsKey('generatedResourceName')
            ? json_['generatedResourceName'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        resourceCategory: json_.containsKey('resourceCategory')
            ? json_['resourceCategory'] as core.String
            : null,
        resourceDescription: json_.containsKey('resourceDescription')
            ? json_['resourceDescription'] as core.String
            : null,
        resourceEmail: json_.containsKey('resourceEmail')
            ? json_['resourceEmail'] as core.String
            : null,
        resourceId: json_.containsKey('resourceId')
            ? json_['resourceId'] as core.String
            : null,
        resourceName: json_.containsKey('resourceName')
            ? json_['resourceName'] as core.String
            : null,
        resourceType: json_.containsKey('resourceType')
            ? json_['resourceType'] as core.String
            : null,
        userVisibleDescription: json_.containsKey('userVisibleDescription')
            ? json_['userVisibleDescription'] as core.String
            : null,
      );