Runtime.fromMap constructor

Runtime.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Runtime.fromMap(Map<String, dynamic> map) {
  return Runtime(
    $id: map['\$id'].toString(),
    key: map['key'].toString(),
    name: map['name'].toString(),
    version: map['version'].toString(),
    base: map['base'].toString(),
    image: map['image'].toString(),
    logo: map['logo'].toString(),
    supports: map['supports'] ?? [],
  );
}