DestinationConfig.fromJson constructor

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

Implementation

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