Basic.fromJSON constructor

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

Implementation

factory Basic.fromJSON(Map<String, dynamic> data) {
	return Basic(
		(data["username"] as String),
		(data["password"] as String)
	);
}