ValueWithServiceIds.fromJson constructor

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

Implementation

factory ValueWithServiceIds.fromJson(Map<String, dynamic> json) {
  return ValueWithServiceIds(
    annotationValue: json['AnnotationValue'] != null
        ? AnnotationValue.fromJson(
            json['AnnotationValue'] as Map<String, dynamic>)
        : null,
    serviceIds: (json['ServiceIds'] as List?)
        ?.whereNotNull()
        .map((e) => ServiceId.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}