AccessApprovalSettings.fromJson constructor Null safety

AccessApprovalSettings.fromJson(
  1. Map _json
)

Implementation

AccessApprovalSettings.fromJson(core.Map _json)
    : this(
        enrolledAncestor: _json.containsKey('enrolledAncestor')
            ? _json['enrolledAncestor'] as core.bool
            : null,
        enrolledServices: _json.containsKey('enrolledServices')
            ? (_json['enrolledServices'] as core.List)
                .map((value) => EnrolledService.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        notificationEmails: _json.containsKey('notificationEmails')
            ? (_json['notificationEmails'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );