Specification.fromMap constructor

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

Implementation

factory Specification.fromMap(Map<String, dynamic> map) {
  return Specification(
    memory: map['memory'],
    cpus: map['cpus'].toDouble(),
    enabled: map['enabled'],
    slug: map['slug'].toString(),
  );
}