CodeStub.fromJSON constructor

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

Implementation

factory CodeStub.fromJSON(Map<String, dynamic> data) {
	return CodeStub(
		id: (data["id"] as String?),
		context: (data["context"] as String?),
		type: (data["type"] as String?),
		code: (data["code"] as String?),
		version: (data["version"] as String?),
		contextLabel: (data["contextLabel"] as String?),
		label: (data["label"] as Map<String, dynamic>?)?.map((k0, v0) => MapEntry((k0 as String), (v0 as String)))
	);
}