LaunchPermissionConfiguration.fromJson constructor

LaunchPermissionConfiguration.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LaunchPermissionConfiguration.fromJson(Map<String, dynamic> json) {
  return LaunchPermissionConfiguration(
    userGroups: (json['userGroups'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    userIds: (json['userIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}