GetActiveNamesResult.fromJson constructor

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

Implementation

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