toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'name': name,
      if (description != null) 'description': description,
      'version': version,
      if (dependencies.isNotEmpty) 'dependencies': dependencies,
      'status': status.name,
      if (entryPoint != null) 'entryPoint': entryPoint,
      if (meta.isNotEmpty) 'meta': meta,
    };