TraceUser.fromJson constructor

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

Implementation

factory TraceUser.fromJson(Map<String, dynamic> json) {
  return TraceUser(
    serviceIds: (json['ServiceIds'] as List?)
        ?.whereNotNull()
        .map((e) => ServiceId.fromJson(e as Map<String, dynamic>))
        .toList(),
    userName: json['UserName'] as String?,
  );
}