resumejson 0.1.0 copy "resumejson: ^0.1.0" to clipboard
resumejson: ^0.1.0 copied to clipboard

Reference Dart type library for the ResumeJSON structured resume format. Immutable data classes with JSON-LD serialization. Zero external dependencies.

example/example.dart

// ignore_for_file: avoid_print

import 'dart:convert';

import 'package:resumejson/resumejson.dart';

/// Demonstrates creating, serializing, and deserializing a structured resume.
void main() {
  // Build a resume with typed data classes.
  final resume = StructuredResume(
    about: const PersonIdentity(
      givenName: 'Jane',
      familyName: 'Doe',
      name: 'Jane Doe',
      jobTitle: 'Senior Software Engineer',
    ),
    contactPoints: const [
      ContactPoint(contactType: ContactType.email, email: 'jane@example.com'),
    ],
    workExperience: [
      const WorkExperience(
        roleName: 'Senior Software Engineer',
        startDate: '2020-01-15',
        memberOf: Organization(name: 'TechCo', url: 'https://techco.example'),
        employmentType: EmploymentType.fullTime,
        responsibilities: ['Designed and built APIs'],
      ),
    ],
    skills: const [
      Skill(
        name: 'Dart',
        category: SkillCategory.language,
        proficiencyLevel: ProficiencyLevel.expert,
        yearsOfExperience: 5,
      ),
    ],
  );

  // Serialize to JSON-LD.
  final json = resume.toJson();
  print(const JsonEncoder.withIndent('  ').convert(json));

  // Deserialize back — value equality holds.
  final parsed = StructuredResume.fromJson(json);
  assert(resume == parsed);
  print('\nRound-trip equality: ${resume == parsed}');
}
0
likes
160
points
9
downloads

Documentation

API reference

Publisher

verified publisherdancingskylab.com

Weekly Downloads

Reference Dart type library for the ResumeJSON structured resume format. Immutable data classes with JSON-LD serialization. Zero external dependencies.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#json #resume #json-ld #serialization #schema

License

BSD-3-Clause (license)

More

Packages that depend on resumejson