CustomTypes.fromJson constructor

CustomTypes.fromJson(
  1. Map<String, Object?> map
)

Implementation

factory CustomTypes.fromJson(Map<String, Object?> map) {
  return CustomTypes(
    name: map['name']! as String,
    import: map['import']! as String,
    getter: map['getter']! as String,
  );
}