BrokerEngineType.fromJson constructor

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

Implementation

factory BrokerEngineType.fromJson(Map<String, dynamic> json) {
  return BrokerEngineType(
    engineType: (json['engineType'] as String?)?.toEngineType(),
    engineVersions: (json['engineVersions'] as List?)
        ?.whereNotNull()
        .map((e) => EngineVersion.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}