Delegation.fromJSON constructor

Delegation.fromJSON(
  1. Map<String, dynamic> data
)

Implementation

factory Delegation.fromJSON(Map<String, dynamic> data) {
	return Delegation(
		owner: (data["owner"] as String?),
		delegatedTo: (data["delegatedTo"] as String?),
		key: (data["key"] as HexString?),
		tags: (data["tags"] as List<dynamic>).map((x0) => (x0 as String) ).toList()
	);
}