Alias.fromJson constructor

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

Implementation

factory Alias.fromJson(Map<String, dynamic> json) {
  return Alias(
    name: json['Name'] as String?,
    names: (json['Names'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    type: json['Type'] as String?,
  );
}