ServerGroupLaunchConfiguration.fromJson constructor

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

Implementation

factory ServerGroupLaunchConfiguration.fromJson(Map<String, dynamic> json) {
  return ServerGroupLaunchConfiguration(
    launchOrder: json['launchOrder'] as int?,
    serverGroupId: json['serverGroupId'] as String?,
    serverLaunchConfigurations: (json['serverLaunchConfigurations'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ServerLaunchConfiguration.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}