Metadata.fromJson constructor

Metadata.fromJson(
  1. Map json_
)

Implementation

Metadata.fromJson(core.Map json_)
    : this(
        canDelete: json_.containsKey('canDelete')
            ? json_['canDelete'] as core.bool
            : null,
        canHaveBusinessCalls: json_.containsKey('canHaveBusinessCalls')
            ? json_['canHaveBusinessCalls'] as core.bool
            : null,
        canHaveFoodMenus: json_.containsKey('canHaveFoodMenus')
            ? json_['canHaveFoodMenus'] as core.bool
            : null,
        canModifyServiceList: json_.containsKey('canModifyServiceList')
            ? json_['canModifyServiceList'] as core.bool
            : null,
        canOperateHealthData: json_.containsKey('canOperateHealthData')
            ? json_['canOperateHealthData'] as core.bool
            : null,
        canOperateLocalPost: json_.containsKey('canOperateLocalPost')
            ? json_['canOperateLocalPost'] as core.bool
            : null,
        canOperateLodgingData: json_.containsKey('canOperateLodgingData')
            ? json_['canOperateLodgingData'] as core.bool
            : null,
        duplicateLocation: json_.containsKey('duplicateLocation')
            ? json_['duplicateLocation'] as core.String
            : null,
        hasGoogleUpdated: json_.containsKey('hasGoogleUpdated')
            ? json_['hasGoogleUpdated'] as core.bool
            : null,
        hasPendingEdits: json_.containsKey('hasPendingEdits')
            ? json_['hasPendingEdits'] as core.bool
            : null,
        hasVoiceOfMerchant: json_.containsKey('hasVoiceOfMerchant')
            ? json_['hasVoiceOfMerchant'] as core.bool
            : null,
        mapsUri: json_.containsKey('mapsUri')
            ? json_['mapsUri'] as core.String
            : null,
        newReviewUri: json_.containsKey('newReviewUri')
            ? json_['newReviewUri'] as core.String
            : null,
        placeId: json_.containsKey('placeId')
            ? json_['placeId'] as core.String
            : null,
      );