DomainEntry.fromJson constructor

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

Implementation

factory DomainEntry.fromJson(Map<String, dynamic> json) {
  return DomainEntry(
    id: json['id'] as String?,
    isAlias: json['isAlias'] as bool?,
    name: json['name'] as String?,
    options: (json['options'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    target: json['target'] as String?,
    type: json['type'] as String?,
  );
}